<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>

<html>
  <head>
    
    <title>readnote hello</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

  </head>
  
  <body>

	<div style="width: 100%;margin: 20px 20px;padding-left: 150 150px;">
	
	<h1><s:property value="one.content"/> </h1>
		<s:iterator value="expostulations">
		<div class="expostulationContainer">
			<div class="expostulationText" style="text-align: left;font-style: normal;font-family: 宋体;font-weight: bold;"><h4><s:property value="content"/></h4></div>
			<div class="expostulationDate" style="text-align: right;margin-right: 10px;"><s:date format="yyyy/MM/dd hh:mm:ss" name="createDate"/></div>
			
		</div>
		</s:iterator>
	</div>






<P>
<P>
<P>
<P>
<P>
<P>
<P>
<P>
<P>


    <h3>user expostulation list. </h3>
    	<br>

	<s:property value="user.loginName"/>谏言列表
	
	top 1 : <s:property value="one"/>
	
	
	<s:form  action="index" namespace="/center/expostulation" method="post">
	
	<a href="<s:url action="input" namespace="/center/expostulation"></s:url>">添加谏言</a>
	
	<h1  align="left">分页数据</h1>
		<div id="query">
			所属用户：<s:textfield name="query.query['lk_user.loginName_s']"  />
			内容：<s:textfield name="query.query['lk_content_s']"  />
			<input type="submit" value="查询"/>
		</div>
		<p>
		<div id="pageInfo">
			总记录数：<s:property value="page.crruntTotalRows"/> | 
			最小页码：<s:property value="page.crruntMinPage"/> | 
			当前页码：<s:property value="page.currentPage"/> | 
			最大页码：<s:property value="page.crruntMaxPage"/> | 
			每页显示：<s:property value="page.queryPageTotalRows"/> ---- 
			<s:select list="page.getShowPageRows()" name="page.queryPageTotalRows"></s:select>
			跳转到<s:textfield name="page.queryPage" value="%{page.currentPage}"/> 页
			<input type="submit" value="分页并查询"/>
		</div>
		
		<div id="pageItems">
			<table >
				<tr>
					<th>序号</th>
					<th>内容</th>
					<th>所属用户</th>
					<th>发布日期</th>
					<th>行为</th>
				</tr>
				<s:iterator value="page.items">
				<tr>
					<td><s:property value="id"/></td>
					<td><s:property value="content"/></td>
					<td><s:property value="createUser.loginName"/></td>
					<td><s:property value="createDate"/></td>
					<td>
						<a href="
						<s:url action="view" namespace="/center/expostulation"><s:param name="expostulation.id" value="%{id}" /></s:url>
						"
						 
						target="_blank">查看谏言</a>
						|
						<a href="
						<s:url action="input" namespace="/center/expostulation"><s:param name="expostulation.id" value="%{id}" /></s:url>
						">修改谏言信息</a>
						|
						<a href="
						<s:url action="delete" namespace="/center/expostulation"><s:param name="expostulation.id" value="%{id}" /></s:url>
						">删除谏言</a>
					</td>
				</tr>
				</s:iterator>
			</table>
		</div>
	</s:form>
	
  </body>
</html>
